package com.gurumades.triggers.client;

import com.gurumades.triggers.client.TriggerChangeEvent;

public class MockTriggerChangeEvent implements TriggerChangeEvent {

	MockTrigger source;
	Object value;
	
	protected MockTriggerChangeEvent(MockTrigger source, Object value) {
		super();
		this.source = source;
		this.value = value;
	}

	@Override
	public MockTrigger getSource() {
		return source;
	}
	
	@Override
	public Object getValue() {
		return value;
	}
	
	public void setValue(Object value) {
		this.value = value;
	}
	
	public static MockTriggerChangeEvent make(MockTrigger s, Object value){
		return new MockTriggerChangeEvent(s, value);
	}

}
